package com.example.demo_dongruanD.pojo;
import jakarta.persistence.*;

@Entity
@Table(name = "doctor") // 表名为 doctor
public class Doctor {

    @Id
    @Column(name = "docId")
    private String docId;

    @Column(name = "docCode", columnDefinition = "varchar(255)")
    private String docCode;

    @Column(name = "realName", columnDefinition = "varchar(255)")
    private String realName;

    @Column(name = "password", columnDefinition = "varchar(255)")
    private String password;

    @Column(name = "sex")
    private Integer sex;

    @Column(name = "deptno")
    private Integer deptno;

    @Column(name = "phone")
    private String phone;

    @Column(name = "hpId")
    private Integer hpId;

    public Integer getHpId() {
        return hpId;
    }

    public void setHpId(Integer hpId) {
        this.hpId = hpId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getDocCode() {
        return docCode;
    }

    public void setDocCode(String docCode) {
        this.docCode = docCode;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getDeptno() {
        return deptno;
    }

    public void setDeptno(Integer deptno) {
        this.deptno = deptno;
    }


    // 省略构造方法和getter/setter方法
}
